#include "stdafx.h"

long ReplaceSymbol(LPTSTR pItem,LPCTSTR lpsymbol,long len)
{
	long nCount = 0;
	nCount = lstrlen(lpsymbol);
	if(!nCount) return nCount;
	wmemset(pItem,0,__maxsize_data__);
	if(nCount == len)
	{
		lstrcpyn(pItem,lpsymbol,__maxsize_data__);
	}
	else if(nCount < len)
	{
        wmemset(pItem,48,len-nCount);
		lstrcpyn(pItem+(len-nCount),lpsymbol,__maxsize_data__);
	}
    return nCount;

}